package org.example.server.impl;

import org.example.entity.SysClient;
import org.example.mapper.ClientMapper;
import org.example.server.ClientServer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ClientServerImpl implements ClientServer {
    @Autowired
    ClientMapper clientMapper;
    @Override
    public List<SysClient> clientList(String sex,String xname) {
        return clientMapper.clientList(sex,xname);

    }

    @Override
    public SysClient clientDetails(Integer id) {
        return clientMapper.clientDetails(id);
    }

    @Override
    public void save(SysClient sysClient) {
        clientMapper.save(sysClient);
    }

    @Override
    public SysClient selectByName(String name) {
        return clientMapper.selectByName(name);
    }

    @Override
    public void updateById(SysClient sysClient) {
        clientMapper.updateById(sysClient);
    }

    @Override
    public void deleteClient(Integer id) {
        clientMapper.deleteClient(id);
    }

    @Override
    public void batchDelete(Integer[] clientIds) {
        clientMapper.batchDelete(clientIds);
    }
}
